import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class DownloadingFiles implements Serializable {

	private static final long serialVersionUID = 1L;
	Map<String,DFile> files= null;
	
	public DownloadingFiles()
	{
		files = new HashMap<>();
	}
	
	class DFile
	{
		public String filepath;
		public int totalchunks;
		public int filesize;
		public ArrayList<Integer> remainingchunks;
		public String filename;
		int no;
		public DFile(String fp,int size, int tchunks, ArrayList<Integer> c, String name)
		{
			filepath = fp;
			totalchunks = tchunks;
			remainingchunks = c;
			filesize = size;
			filename = name;
			
		}
	}

	public DFile newDFile(String filepath, int size, int totalchunks, ArrayList<Integer> chunklist, String filename) {
		
		return new DFile(filepath, size, totalchunks, chunklist, filename);
	}
}